<?php
$arImages = array_merge(Gallery::getEssenceImages(1, 31), Gallery::getEssenceImages(1, 30));
$arImages = array_reverse($arImages);
if ($objSession->isLoggedIn()){     
	echo '<p id="adminMenu" class="editPage">';
	  echo '<a class="admin" href="' . W_ABSPATH . 'admin/editPage/">Добавить раздел меню</a>';
	  //echo '<a class="admin" href="' . W_ABSPATH . 'admin/changePass/">Смена пароля</a>';
	  echo '<a class="admin" href="' . W_ABSPATH . 'admin/adminImages">Картинки</a>';
	  echo '<a class="admin" href="' . W_ABSPATH . 'admin/logout">Выход</a>';
	echo '</p>';
}
else  echo '<a style="color:#F4F0DA" href="' . W_ABSPATH . 'admin">вход</a>';

echo '<div id="logo">';
	echo '<img src="' . W_IMAGES . 'logo.png" />';
echo '</div>';	
		
echo '<div id="head">';
	/*echo '<div id="centerBlock">';
		echo '<div id="centerMenu">';
			echo '<a href="' . W_ABSPATH . '"><img src="' . W_IMAGES . 'icon_home.gif" title="На главную"/></a>';
			echo '<a href="' . W_ABSPATH . 'karta/"><img src="' . W_IMAGES . 'icon_karta.gif" title="Карта сайта"/></a>';
			echo '<a href="mailto:aaa@yandex.ru"><img src="' . W_IMAGES . 'icon_message.gif" title="Обратная связь"/></a>';
		echo '</div>';
	echo '</div>';*/
	
	
	echo '<div id="headRight">';
		?>
			<div class="sliderkit photosgallery-minimalistic" style="display: block;">
			<div class="sliderkit-panels">
			<?php foreach ($arImages as $image){
						echo '
							<div class="sliderkit-panel sliderkit-panel-old" style="display: block;">
								<img alt="' . $image['title'] . '" src="' . W_IMAGES . '/upload/' . $image['name'] . '">
								<div class="sliderkit-panel-textbox">
									<div class="sliderkit-panel-text">
										<h4>sample-01.jpg</h4>
										<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</p>
									</div>
									<div class="sliderkit-panel-overlay"></div>
								</div>
							</div>';
					}?>
			</div>
			 <div class="sliderkit-nav">
				<div class="sliderkit-nav-clip" style="width: 450px; height: 50px;">
					<ul style="width: 450px;">
						<?php 
						foreach ($arImages as $image){
							echo '<li style="width: 75px; height: 50px;" class=""><a title="' . $image['title'] . '" rel="nofollow" href="#"><img alt="' . $image['title'] . '" src="' . W_IMAGES . '/upload/thumb/' . $image['name'] . '"></a></li>';
						}
						?>
					</ul>
				</div>
			</div>
		</div>
		
		<?php 
	echo '</div>';
	echo '<div id="headLeft">';
		echo '<div id="menu">';
			echo '<h1 style="color: white; margin-left: 20px;">Главное меню</h1>';
			View_Pages::showMenu(Pages::getMenu(), $arrRequest[0]);
		echo '</div>';
	echo '</div>';	
echo '</div>';
?>

